package services;

import domain.entities.ExternalValidation;
import domain.entities.ExternalValidationDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: vgonzalez
 * Date: 01/11/12
 * Time: 13:34
 * To change this template use File | Settings | File Templates.
 */
@Service
public class ExternalValidationService {

    private ExternalValidationDAO externalValidationDAO;

    public ExternalValidationService(){

    }

    @Autowired
    public ExternalValidationService(ExternalValidationDAO externalValidationDAO) {
        this.externalValidationDAO = externalValidationDAO;
    }

    public ExternalValidation findById(Integer id){
        return externalValidationDAO.findById(id);
    }

    public void delete(ExternalValidation obj){
        this.externalValidationDAO.delete(obj);
    }
}
